package com.yuexunit.finance.project.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.project.entity.lexicon.ProductTypeEnum;

/**
*@version 创建时间：2017年8月1日 下午4:34:21
*@author wenwenlong
*类说明
*/

@Entity
@Table(name = "FIN_PICKUP_BULKSTOCK_WAREHOUSE")
public class PickupBulkstockWarehouseEntity {
	/** 提货货物ID */
	@Id
	@GeneratedValue
	@Column(name = "PICKUP_BULKSTOCK_ID")
	private Long pickupBulkstockId;
	
	/** 提货ID */
	@Column(name = "PICKUP_ID")
	private Long pickupId;
	
	/** 融资编号 */
	@Column(name = "FINANCE_ID")
	private Long financeId;
	
	/** 融资编号 */
	@Column(name = "FINANCE_NUMBER")
	private String financeNumber;
	
	/** 申请时间 */
	@Column(name = "APPLICATIOIN_DATE")
	private Date applicationDate;
	
	/** 业务类型 */
	@Column(name = "PRODUCT_TYPE")
	private ProductTypeEnum productType;
	
	/** 货箱ID */
	@Column(name = "INVENTORY_ID")
	private Long inventoryId;
	
	/** 货物 */
	@Column(name = "BULKSTOCK_NAME")
	private String bulkstockName;
	
	/** 规格型号 */
	@Column(name = "SPECIFICATION")
	private String specification;
	
	/** 仓库 */
	@Column(name = "WAREHOUSE_NAME")
	private String warehouseName;
	
	/** 仓库ID */
	@Column(name = "WAREHOUSE_ID")
	private String warehouseId;
	
	/** 入库单号 */
	@Column(name = "INBOUND_NUMBER")
	private String inboundNumber;
	
	/** 监管数量 */
	@Column(name = "SUPERVISION_QUANTITY")
	private BigDecimal supervisionQuantity;
	
	/** 提货数量 */
	@Column(name = "PICKUP_QUANTITY")
	private BigDecimal pickupQuantity;
	
	/** 提货金额 */
	@Column(name = "PICKUP_AMOUNT")
	private BigDecimal pickupAmount;
	
	/** 本金 */
	@Column(name = "BULKSTOCK_AMOUNT")
	private BigDecimal bulkstockAmount;
	
	/** 服务费 */
	@Column(name = "INTEREST")
	private BigDecimal interest;
	
	/** 其他费用 */
	@Column(name = "OTHERS")
	private BigDecimal others;
	
	/** 库位ID */
	@Column(name = "LOCATION_ID")
	private String locationId;
	
	/** 货物ID */
	@Column(name = "BULKSTOCK_INFO_ID")
	private Long bulkstockInfoId;

	public String getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}

	public BigDecimal getOthers() {
		return others;
	}

	public void setOthers(BigDecimal others) {
		this.others = others;
	}

	public String getLocationId() {
		return locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public Long getBulkstockInfoId() {
		return bulkstockInfoId;
	}

	public void setBulkstockInfoId(Long bulkstockInfoId) {
		this.bulkstockInfoId = bulkstockInfoId;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public Long getFinanceId() {
		return financeId;
	}

	public void setFinanceId(Long financeId) {
		this.financeId = financeId;
	}

	public Long getPickupBulkstockId() {
		return pickupBulkstockId;
	}

	public void setPickupBulkstockId(Long pickupBulkstockId) {
		this.pickupBulkstockId = pickupBulkstockId;
	}

	public Long getPickupId() {
		return pickupId;
	}

	public void setPickupId(Long pickupId) {
		this.pickupId = pickupId;
	}

	public String getFinanceNumber() {
		return financeNumber;
	}

	public void setFinanceNumber(String financeNumber) {
		this.financeNumber = financeNumber;
	}

	public Date getApplicationDate() {
		return applicationDate;
	}

	public void setApplicationDate(Date applicationDate) {
		this.applicationDate = applicationDate;
	}

	public ProductTypeEnum getProductType() {
		return productType;
	}

	public void setProductType(ProductTypeEnum productType) {
		this.productType = productType;
	}

	public Long getInventoryId() {
		return inventoryId;
	}

	public void setInventoryId(Long inventoryId) {
		this.inventoryId = inventoryId;
	}

	public String getBulkstockName() {
		return bulkstockName;
	}

	public void setBulkstockName(String bulkstockName) {
		this.bulkstockName = bulkstockName;
	}

	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	public String getInboundNumber() {
		return inboundNumber;
	}

	public void setInboundNumber(String inboundNumber) {
		this.inboundNumber = inboundNumber;
	}

	public BigDecimal getSupervisionQuantity() {
		return supervisionQuantity;
	}

	public void setSupervisionQuantity(BigDecimal supervisionQuantity) {
		this.supervisionQuantity = supervisionQuantity;
	}

	public BigDecimal getPickupQuantity() {
		return pickupQuantity;
	}

	public void setPickupQuantity(BigDecimal pickupQuantity) {
		this.pickupQuantity = pickupQuantity;
	}

	public BigDecimal getPickupAmount() {
		if (null == pickupAmount) {
			return BigDecimal.ZERO;
		}
		return pickupAmount;
	}

	public void setPickupAmount(BigDecimal pickupAmount) {
		this.pickupAmount = pickupAmount;
	}

	public BigDecimal getBulkstockAmount() {
		return bulkstockAmount;
	}

	public void setBulkstockAmount(BigDecimal bulkstockAmount) {
		this.bulkstockAmount = bulkstockAmount;
	}

	public BigDecimal getInterest() {
		return interest;
	}

	public void setInterest(BigDecimal interest) {
		this.interest = interest;
	}
	
}
